home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Inquiring cttys
- Date: Fri, 18 Feb 94 22:30:50 CET
- From: Juergen Lock <nox@jelal.north.de>
- In-Reply-To: <9402151028.AA11871@issan.informatik.uni-dortmund.de>; from "Andreas Schwab" at Feb 15, 94 11:28 am
- Message-Id: <9402182130.AA00105@jelal.north.de>
-
- Andreas Schwab writes:
-
- > Juergen Lock <nox@jelal.north.de> writes:
- >
- > |> volatile struct stat sb;
- >
- > |> *(short *)&sb = fd; /* -1 for /dev/tty */
- > |> if (r = Fcntl(procf, &sb, PFSTAT))
- > |> error ...
- > |> find device...
- >
- > |> (volatile seems necessary because of the gcc Fcntl binding(?), can this be
- > |> fixed?)
- >
- > This should not be necessary with newer gcc's, where the pseudo
- > register "memory" can be specified as being clobbered in the asm spec.
- > I think this is taken care of in the current MiNTlibs.
-
- just checked, the "memory" is there, apparently gcc 2.3.3pl2 silently
- ignored it... (sorry not tried 2.5.8 yet.)
- >
- > Andreas.
- *shrug*
- Juergen
- --
- J"urgen Lock / nox@jelal.north.de / UUCP: ..!uunet!unido!uniol!jelal!nox
- ...ohne Gewehr
- PGP public key fingerprint = 8A 18 58 54 03 7B FC 12 1F 8B 63 C7 19 27 CF DA
-